<!DOCTYPE html>
<html lang="zh-CN" xml:lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>个人中心</title>
    <link href="css/personalcenter.css" rel="preload" as="style">
    <link href="css/personalcenter.css" rel="stylesheet">
    <link href="css/nav1.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
</head>
<body>
<nav class="mynav">
    <ul>
        <li><a href="" onclick="window.open('index.html')">首 &nbsp 页</a></li>
        <li><a href="" onclick="window.open('bankcardlist.html')">我的借记卡</a></li>
        <li><a href="" onclick="window.open('deallist.html')">我的流水</a></li>
        <li><a href="" onclick="window.open('applydebitcard.html')">申请借记卡</a></li>
<!--        <li><a href="" onclick="index()">个人中心</a></li>-->
        <li><a href="" onclick="window.open('helpandsupport.html')">帮助与支持</a></li>
    </ul>
</nav>
<span class="target"></span>
<div>
    <div class="page-main">
        <div class="container ">
            <div class="row">
                <div class="span4">
                    <div class="user-address-menu">
                        <div class="menu-box"><h3 class="title" >个人中心</h3>
                            <ul>
                                <li>
                                    <a href="bankcardlist.html">我的银行卡</a>
                                </li>
                                <li>
                                    <a href="myinvest.html" target="_blank">我的理财</a>
                                </li>
                                <li>
                                    <a href="transferaccounts.html">转账服务</a>
                                </li>
                                <li>
                                    <a href="selfpayment.html">自助缴费</a>
                                </li>
                            </ul>
                        </div>
                        <div class="menu-box">
                            <h3 class="title">借记卡服务</h3>
                            <ul>
                                <li>
                                    <a href="bankcardlist.html">我的贷记卡</a>
                                </li>
                                <li>
                                    <a href="deallist.html">我的流水</a>
                                </li>
                            </ul>
                        </div>
                        <div class="menu-box"><h3 class="title">账户管理</h3>
                            <ul>
                                <li>
                                    <a href="myInfo.html" target="_blank">个人信息</a>
                                </li>
                                <li>
                                    <a href="modifypw.html">修改登录密码</a>
                                </li>
                                <li>
                                    <a href="loginhistory.html">登录历史</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="span16">
                    <div class="mi-uc-box">
                        <div class="portal-content-box">
                            <div class="box-bd">
                                <div data-v-6cfb7de2="" class="portal-main clearfix">
                                    <div data-v-6cfb7de2="" class="user-card">
                                        <h2 data-v-6cfb7de2="" class="username" id="username"></h2>
                                        <img data-v-6cfb7de2="" src="images/myinfo_img/portrait.jpg" width="150"
                                             height="150" alt="vmp6513" class="avatar"></div>
                                    <div data-v-6cfb7de2="" class="user-actions">
                                        <ul data-v-6cfb7de2="" class="action-list">
                                            <li data-v-6cfb7de2="">账户状态:
                                                <span data-v-6cfb7de2="" class="level level-3" id="userstate"></span>
                                            </li>
                                            <li data-v-6cfb7de2="">绑定手机:
                                                <span data-v-6cfb7de2="" id="userphone"></span>
                                            </li>
                                            <li data-v-6cfb7de2="">绑定邮箱:
                                                <span data-v-6cfb7de2="" id="useremail"></span>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div data-v-1ace6eb7="" class="portal-sub">
                                    <ul data-v-1ace6eb7="" class="info-list clearfix">
                                        <li data-v-1ace6eb7="">
                                            <h3 data-v-1ace6eb7="">我的银行卡</h3>
                                            <a data-v-1ace6eb7="" href="bankcardlist.html">查看我的银行卡 > </a>
                                            <img data-v-1ace6eb7="" src="images/myinfo_img/mainfun1.png" alt="">
                                        </li>
                                        <li data-v-1ace6eb7="">
                                            <h3 data-v-1ace6eb7="">我的个人信息</h3>
                                            <a data-v-1ace6eb7="" href="myInfo.html" target="_blank">查看我的个人信息 > </a>
                                            <img data-v-1ace6eb7="" src="images/myinfo_img/mainfun2.png" alt="">
                                        </li>
                                        <li data-v-1ace6eb7=""><h3 data-v-1ace6eb7="">我的服务</h3>
                                            <a data-v-1ace6eb7="" href="helpandsupport.html">服务与支持 > </a>
                                            <img data-v-1ace6eb7="" src="images/myinfo_img/mainfun3.png" alt="">
                                        </li>
                                        <li data-v-1ace6eb7=""><h3 data-v-1ace6eb7="">我的理财产品</h3>
                                            <a data-v-1ace6eb7="" href="myinvest.html" target="_blank">查看我的理财产品 > </a>
                                            <img data-v-1ace6eb7="" src="images/myinfo_img/mainfun4.png" alt="">
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="js/nav1.js"></script>
<script>
    $.ajax({
        url: "http://www.longm.top:8080/lm/Myinfo",
        type: "POST",
        dataType:"json",
        headers: {
            "token":window.localStorage.getItem("token")
        },
        contentType: "application/x-www-form-urlencoded",
        data: {},
        success: function (result) {
            console.log(JSON.stringify(result));
            if (result.code === 200) {
                document.getElementById("username").innerHTML=result.data.obusername;
                document.getElementById("userphone").innerHTML=result.data.phonenum;
                if (result.data.eMail != null){
                    document.getElementById("useremail").innerHTML=result.data.eMail;
                } else {
                    document.getElementById("useremail").innerHTML="未绑定";
                }

                if(result.data.state == 1){
                    document.getElementById("userstate").innerHTML="正常";
                }
            } else {
                alert(result["message"]);
                window.location.href = "login.html";
            }
        }
    });
</script>
</body>
</html>